Optimal. Leaf size=167 \[ \frac{16 \tan ^5(e+f x)}{165 a^3 c^6 f}+\frac{32 \tan ^3(e+f x)}{99 a^3 c^6 f}+\frac{16 \tan (e+f x)}{33 a^3 c^6 f}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^6-c^6 \sin (e+f x)\right )}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^3-c^3 \sin (e+f x)\right )^2}+\frac{\sec ^5(e+f x)}{11 a^3 f \left (c^2-c^2 \sin (e+f x)\right )^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.217262, antiderivative size = 167, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {2736, 2672, 3767} \[ \frac{16 \tan ^5(e+f x)}{165 a^3 c^6 f}+\frac{32 \tan ^3(e+f x)}{99 a^3 c^6 f}+\frac{16 \tan (e+f x)}{33 a^3 c^6 f}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^6-c^6 \sin (e+f x)\right )}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^3-c^3 \sin (e+f x)\right )^2}+\frac{\sec ^5(e+f x)}{11 a^3 f \left (c^2-c^2 \sin (e+f x)\right )^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2736
Rule 2672
Rule 3767
Rubi steps
\begin{align*} \int \frac{1}{(a+a \sin (e+f x))^3 (c-c \sin (e+f x))^6} \, dx &=\frac{\int \frac{\sec ^6(e+f x)}{(c-c \sin (e+f x))^3} \, dx}{a^3 c^3}\\ &=\frac{\sec ^5(e+f x)}{11 a^3 f \left (c^2-c^2 \sin (e+f x)\right )^3}+\frac{8 \int \frac{\sec ^6(e+f x)}{(c-c \sin (e+f x))^2} \, dx}{11 a^3 c^4}\\ &=\frac{\sec ^5(e+f x)}{11 a^3 f \left (c^2-c^2 \sin (e+f x)\right )^3}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^3-c^3 \sin (e+f x)\right )^2}+\frac{56 \int \frac{\sec ^6(e+f x)}{c-c \sin (e+f x)} \, dx}{99 a^3 c^5}\\ &=\frac{\sec ^5(e+f x)}{11 a^3 f \left (c^2-c^2 \sin (e+f x)\right )^3}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^3-c^3 \sin (e+f x)\right )^2}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^6-c^6 \sin (e+f x)\right )}+\frac{16 \int \sec ^6(e+f x) \, dx}{33 a^3 c^6}\\ &=\frac{\sec ^5(e+f x)}{11 a^3 f \left (c^2-c^2 \sin (e+f x)\right )^3}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^3-c^3 \sin (e+f x)\right )^2}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^6-c^6 \sin (e+f x)\right )}-\frac{16 \operatorname{Subst}\left (\int \left (1+2 x^2+x^4\right ) \, dx,x,-\tan (e+f x)\right )}{33 a^3 c^6 f}\\ &=\frac{\sec ^5(e+f x)}{11 a^3 f \left (c^2-c^2 \sin (e+f x)\right )^3}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^3-c^3 \sin (e+f x)\right )^2}+\frac{8 \sec ^5(e+f x)}{99 a^3 f \left (c^6-c^6 \sin (e+f x)\right )}+\frac{16 \tan (e+f x)}{33 a^3 c^6 f}+\frac{32 \tan ^3(e+f x)}{99 a^3 c^6 f}+\frac{16 \tan ^5(e+f x)}{165 a^3 c^6 f}\\ \end{align*}
Mathematica [A] time = 1.56477, size = 233, normalized size = 1.4 \[ \frac{\left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right ) \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right ) (1802240 \sin (e+f x)+247170 \sin (2 (e+f x))+557056 \sin (3 (e+f x))+187250 \sin (4 (e+f x))-163840 \sin (5 (e+f x))+37450 \sin (6 (e+f x))-98304 \sin (7 (e+f x))-3745 \sin (8 (e+f x))-411950 \cos (e+f x)+1081344 \cos (2 (e+f x))-127330 \cos (3 (e+f x))+819200 \cos (4 (e+f x))+37450 \cos (5 (e+f x))+163840 \cos (6 (e+f x))+22470 \cos (7 (e+f x))-16384 \cos (8 (e+f x)))}{8110080 f (a \sin (e+f x)+a)^3 (c-c \sin (e+f x))^6} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.076, size = 253, normalized size = 1.5 \begin{align*} 2\,{\frac{1}{f{c}^{6}{a}^{3}} \left ( -4/11\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-11}-2\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-10}-{\frac{53}{9\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{9}}}-23/2\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-8}-{\frac{33}{2\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{7}}}-{\frac{217}{12\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{6}}}-{\frac{623}{40\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{5}}}-{\frac{169}{16\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{4}}}-{\frac{365}{64\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{3}}}-{\frac{303}{128\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{2}}}-{\frac{219}{256\,\tan \left ( 1/2\,fx+e/2 \right ) -256}}-{\frac{1}{80\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{5}}}+1/32\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-4}-{\frac{7}{96\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{3}}}+{\frac{5}{64\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{2}}}-{\frac{37}{256\,\tan \left ( 1/2\,fx+e/2 \right ) +256}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.35087, size = 949, normalized size = 5.68 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.64909, size = 412, normalized size = 2.47 \begin{align*} \frac{128 \, \cos \left (f x + e\right )^{8} - 576 \, \cos \left (f x + e\right )^{6} + 240 \, \cos \left (f x + e\right )^{4} + 56 \, \cos \left (f x + e\right )^{2} + 8 \,{\left (48 \, \cos \left (f x + e\right )^{6} - 40 \, \cos \left (f x + e\right )^{4} - 14 \, \cos \left (f x + e\right )^{2} - 9\right )} \sin \left (f x + e\right ) + 27}{495 \,{\left (3 \, a^{3} c^{6} f \cos \left (f x + e\right )^{7} - 4 \, a^{3} c^{6} f \cos \left (f x + e\right )^{5} -{\left (a^{3} c^{6} f \cos \left (f x + e\right )^{7} - 4 \, a^{3} c^{6} f \cos \left (f x + e\right )^{5}\right )} \sin \left (f x + e\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 2.10262, size = 331, normalized size = 1.98 \begin{align*} -\frac{\frac{33 \,{\left (555 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} + 1920 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} + 2710 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} + 1760 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 463\right )}}{a^{3} c^{6}{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 1\right )}^{5}} + \frac{108405 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{10} - 784080 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{9} + 2901195 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{8} - 6652800 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{7} + 10407474 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{6} - 11435424 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{5} + 8949270 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 4899840 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} + 1816265 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - 411664 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 47279}{a^{3} c^{6}{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - 1\right )}^{11}}}{63360 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]